package com.bsj.power.pls.queue;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author LiJiaXin
 * @version 1.0.0
 * @description AllQueueUntil
 * @time 2024/5/21 16:40
 */
@Component
public class AllQueueUntil {

    @Autowired
    private MsgQueue msgQueue;

    @Autowired
    private AlarmQueue alarmQueue;

    @Autowired
    private PathAlarmQueue pathAlarmQueue;

//    @Autowired
//    private PathAlarmHandle pathAlarmHandle;

    @Autowired
    private JobSignInQueue jobSignInQueue;

//    @Autowired
//    private UWBHandleQueue uwbHandleQueue;

//    @Autowired
//    private QueueHumanFaceHandle queueHumanFaceHandle;

    @Autowired
    private SosAlarmQueue sosAlarmQueue;

    @Autowired
    private TagAlarmMsgQueue tagAlarmMsgQueue;


    public void start() {
        msgQueue.start();
        // TODO 作业区域报警，暂时不启动
//        alarmQueue.start();

//        pathAlarmQueue.start();
        jobSignInQueue.start();
//        uwbHandleQueue.start();
//        pathAlarmHandle.start();
//        queueHumanFaceHandle.start();
        sosAlarmQueue.start();
        tagAlarmMsgQueue.start();
    }

    public void stop() {
        msgQueue.stop();
        alarmQueue.stop();
//        pathAlarmQueue.stop();
        jobSignInQueue.stop();
//        uwbHandleQueue.stop();
//        pathAlarmHandle.stop();
//        queueHumanFaceHandle.stop();
        sosAlarmQueue.stop();
        tagAlarmMsgQueue.stop();
    }

}
